//
//  FDMSearchTableViewCellWithImage.m
//  Entertainment
//
//  Created by dllo on 16/4/27.
//  Copyright © 2016年 付冬梅. All rights reserved.
//

#import "FDMSearchTableViewCellWithImage.h"

@interface FDMSearchTableViewCellWithImage ()



@end
@implementation FDMSearchTableViewCellWithImage

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleImage = [[UIImageView alloc] init];
        [self.contentView addSubview:self.titleImage];
        [self.titleImage release];
        self.titleLabel = [[FDMBaseLabel alloc] init];
        [self.contentView addSubview:self.titleLabel];
        [self.titleLabel release];
        self.subtitleLabel = [[FDMBaseLabel alloc] init];
        [self.contentView addSubview:self.subtitleLabel];
        [self.subtitleLabel release];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    [self.titleImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView.mas_top).with.offset(10);
        make.left.equalTo(self.contentView.mas_left).with.offset(10);
        make.bottom.equalTo(self.contentView.mas_bottom).with.offset(-10);
        make.width.mas_equalTo(@60);
        
    }];
    
//    self.titleLabel
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
